package week2;

import java.util.Scanner;

public class q3 {
    public static void main(String[] args) {
        System.out.println("请输入Java课程的成绩");
        //输出java课程的成绩
        Scanner sc = new Scanner(System.in);
        //输入sc
        double javaScore = sc.nextDouble();
        //给sc定义double类型和赋予名字javascore
        System.out.println("请输入C语言成绩");
        //输出C语言成绩
        double cScore = sc.nextDouble();
        //给sc定义double类型和赋予名字csore
        System.out.println("请输入数据库语言成绩");
        //输出数据库语言成绩
        double databaseScore = sc.nextDouble();
        //给sc定义double类型和赋予名字databasescore
        System.out.println("Java和C语言的分数差为："+(javaScore-cScore));
        //输出java的c语言的分数差
        System.out.println("三门课的平均分为："+(javaScore+cScore+databaseScore)/3);
        //输出三门课
    }
}
